<!DOCTYPE html>
<html>

<head>
    <!-- 垂直对齐测试2 -->
    <meta charset="utf-8">
    <meta charset="utf-8">
    <title>垂直对齐测试2</title>
    <style>
        .box{
            border: 1px solid goldenrod;

        }

        .box span{
            vertical-align: middle;
            text-decoration: line-through;
            line-height: 1;
            font-stretch: condensed;
        }
        .line-box{
            display: block;
            border: 1px dashed rebeccapurple;
        }

        /* 模拟行内框 */
        .inline-box{
            display: inline-block;
            border: 1px dashed black;
        }

    </style>
</head>

<body>
    <div class="box">
        <span style="background-color: #80808085;">x
            <div class="inline-box"><span style="font-size: 50px;color: red;">xhg</span></div>
            <div class="inline-box"><span style="font-size: 80px;color: green;">xhg😀</span></div>
            <div class="inline-box"><span style="font-size: 100px;color: blue;">xhg</span></div>
            <div class="inline-box"><span style="font-size: 150px;color: pink;">xhg</span></div>
        </span>
        <math displaystyle="true">
            <msubsup>
              <mo> &#x222B;<!-- 积分 --> </mo>
              <mn> 0 </mn>
              <mn> 1 </mn>
            </msubsup>
          </math>
    </div>

</body>

</html>
